package com.rs.dao;

import com.github.pagehelper.Page;
import com.rs.model.ZhOvertime;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhOvertimeMapper {
   

    int deleteByPrimaryKey(Integer ovId);

    int insert(ZhOvertime record);

    int insertSelective(ZhOvertime record);

   

    int updateByPrimaryKeySelective(ZhOvertime record);

    int updateByPrimaryKey(ZhOvertime record);
    
    
    //根据id得到用户加班详情
    ZhOvertime selectByPrimaryKey(Integer ovId);
    
    //加班申请审核
    int updateOvertimeAudit(ZhOvertime record);
    
    //根据审核状态查看所有审核信息
    Page<ZhOvertime> selectOvertimeAudit(@Param("ovAudit")Integer ovAudit);
    
    //人员根据审核状态查看自己的所有加班审核信息
    Page<ZhOvertime> selectOneselfOvertimeAudit(ZhOvertime record);
    
}